package com.lzxuni.modules.dataAcquisition.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 追溯链条-环节-过程
 * </p>
 *
 * @author wzx
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_chain_link_process")
public class ChainLinkProcess implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    /**
     * 环节id
     */
    private String linkId;

    private String parentId;

    /**
     * 过程名称
     */
    private String processName;

    /**
     * 过程代码
     */
    private String processCode;

    /**
     * 过程类型
     */
    private String processType;

    /**
     * 描述
     */
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private String linkName;

    @TableField(exist = false)
    private List<ChainLinkProcessIndex> indexList;

    @TableField(exist = false)
    private List<ProductIndex> productIndexList;

}
